"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccountEntity = void 0;
const typeorm_1 = require("typeorm");
const GameConfig_1 = require("../../src/config/GameConfig");
let AccountEntity = class AccountEntity {
    constructor() {
        this.account = "";
        this.password = "";
        this.token = "";
        this.account_type = GameConfig_1.GameConfig.Account_Type.Account;
        this.status = GameConfig_1.GameConfig.Status_Type.Normal;
        this.ip = "";
        this.nick_name = "";
        this.channel = GameConfig_1.GameConfig.Channel_Type.Web;
        this.os = "";
        this.phone_type = "";
        this.bundle_name = "";
        this.system_version = "";
        this.create_time = "";
        this.last_login_time = "";
        this.phone = "";
        this.sex = GameConfig_1.GameConfig.Sex_Type.Mail;
        this.headimgurl = "";
        this.udid = "abcd";
    }
};
__decorate([
    (0, typeorm_1.PrimaryColumn)({ type: "varchar", length: 30 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "account", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 32 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "password", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 255 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "token", void 0);
__decorate([
    (0, typeorm_1.Column)(),
    __metadata("design:type", Number)
], AccountEntity.prototype, "account_type", void 0);
__decorate([
    (0, typeorm_1.Column)(),
    __metadata("design:type", Number)
], AccountEntity.prototype, "status", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 255 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "ip", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 64 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "nick_name", void 0);
__decorate([
    (0, typeorm_1.Column)(),
    __metadata("design:type", Number)
], AccountEntity.prototype, "channel", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 30 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "os", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 30 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "phone_type", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 100 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "bundle_name", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 50 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "system_version", void 0);
__decorate([
    (0, typeorm_1.Column)("datetime", { nullable: true }),
    __metadata("design:type", String)
], AccountEntity.prototype, "create_time", void 0);
__decorate([
    (0, typeorm_1.Column)("datetime", { nullable: true }),
    __metadata("design:type", String)
], AccountEntity.prototype, "last_login_time", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 30 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "phone", void 0);
__decorate([
    (0, typeorm_1.Column)(),
    __metadata("design:type", Number)
], AccountEntity.prototype, "sex", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 255 }),
    __metadata("design:type", String)
], AccountEntity.prototype, "headimgurl", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
    __metadata("design:type", String)
], AccountEntity.prototype, "udid", void 0);
AccountEntity = __decorate([
    (0, typeorm_1.Entity)("t_accounts")
], AccountEntity);
exports.AccountEntity = AccountEntity;
